import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import axios from 'axios';
import './assets/css/global.scss';
import './assets/font/iconfont.css';
import SocketService from './utils/socket_service';

SocketService.Instance.connect();

axios.defaults.baseURL = 'http://localhost:3000/api/';
Vue.prototype.$http = axios;
// 全局挂在echarts
Vue.prototype.$echarts = window.echarts;
Vue.prototype.$socket = SocketService.Instance;

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount('#app');
